package com.example.chinesenation.Service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.chinesenation.Mapper.BrowseRecordMapper;
import com.example.chinesenation.Entity.BrowseRecord;
import com.example.chinesenation.Service.IBrowseRecordService;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @author sakuraFallingDown
 * @version 1.0
 * @date 2021/1/12 11:17
 */
@Service
public class BrowseRecordServiceImpl extends ServiceImpl<BrowseRecordMapper, BrowseRecord> implements IBrowseRecordService {

    @Override
    public boolean savaRecord(String uid, String id) {
        BrowseRecord browseRecord=new BrowseRecord();
        browseRecord.setArticleId(id);
        browseRecord.setUid(uid);
        return save(browseRecord);
    }
}
